import request from '@/utils/request.js';
import Api from '../index.js';

// 获取客户
export const getCustomers = (data) => {
  return request({
    url: Api.prize.customers,
    method: 'get',
    params: data,
  });
};

// 获取奖品数量
export const getPrizeInfo = (data) => {
  return request({
    url: Api.prize.info,
    method: 'get',
    params: data,
  });
};

// 设置奖品数量
export const setPrizeNum = (data) => {
  return request({
    url: Api.prize.set,
    method: 'post',
    data,
  });
};

// 获取经销商列表
export function getDealers(data) {
  return request({
    url: Api.prize.dealers,
    method: 'GET',
    params: data,
  });
}
